package com.lzh.persevere.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.persevere.model.entity.TagInfo;
import com.lzh.persevere.model.vo.tag.ArticleTagInfoVO;

import java.util.List;

/**
 * 标签表数据库访问层
 *
 * @author luzhiheng
 * @since 2025-07-17
 */
public interface TagInfoMapper extends BaseMapper<TagInfo> {

    /**
     * 根据文章id查询标签
     *
     * @param articleId 文章id
     * @return 标签列表
     */
    List<TagInfo> selectByArticleId(Long articleId);

    /**
     * 根据文章id列表查询标签
     *
     * @param articleIdList 文章id列表
     * @return 标签列表
     */
    List<ArticleTagInfoVO> selectByArticleIdList(List<Long> articleIdList);
}

